

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>推荐操作系统 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/jquery.js"></script>
        <script src="../../_static/underscore.js"></script>
        <script src="../../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" />
    <link rel="next" title="加入 Ceph 社区！" href="../get-involved/" />
    <link rel="prev" title="硬件推荐" href="../hardware-recommendations/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../" class="icon icon-home"></a> &raquo;</li>
        
          <li><a href="../intro/">Ceph 简介</a> &raquo;</li>
        
      <li>推荐操作系统</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../_sources/start/os-recommendations.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../">
          

          
            
            <img src="../../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="../intro/">Ceph 简介</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../hardware-recommendations/">硬件推荐</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">操作系统推荐</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#ceph">Ceph 依赖</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#linux">Linux 内核</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id2">系统平台</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#octopus-15-2-z">Octopus (15.2.z)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#nautilus-14-2-z">Nautilus (14.2.z)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#luminous-12-2-z">Luminous (12.2.z)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id3">附注</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id4">测试情况</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../get-involved/">加入 Ceph 社区！</a></li>
<li class="toctree-l2"><a class="reference internal" href="../documenting-ceph/">贡献 Ceph 文档</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="id1">
<h1>推荐操作系统<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
<div class="section" id="ceph">
<h2>Ceph 依赖<a class="headerlink" href="#ceph" title="Permalink to this headline">¶</a></h2>
<p>按常规来说，我们建议在较新的 Linux 发行版上部署 Ceph ；同样，要选择长期支持的版本。</p>
<div class="section" id="linux">
<h3>Linux 内核<a class="headerlink" href="#linux" title="Permalink to this headline">¶</a></h3>
<ul>
<li><p><strong>Ceph 内核态客户端</strong></p>
<p>如果你在用内核客户端映射 RBD 块设备或挂载 CephFS ，
那么一般来说，内核客户端机器应该使用由 <a class="reference external" href="http://kernel.org">http://kernel.org</a> 或者发行版提供的
“稳定”或者是“长期维护的”内核系列。</p>
<p>对于 RBD ，如果你想<em>紧跟</em>长期内核，当前，我们建议用基于
4.x 的“长期维护”内核系列：</p>
<ul class="simple">
<li><p>4.19.z</p></li>
<li><p>4.14.z</p></li>
</ul>
<p>对于 CephFS ，选择内核版本时可参考<a class="reference external" href="../../cephfs/mount-using-kernel-driver#which-kernel-version">用内核驱动挂载 CephFS</a>。</p>
<p>较老的内核客户端可能不支持你的 <a class="reference external" href="../../rados/operations/crush-map#tunables">CRUSH 可调值</a>配置、或
Ceph 集群其它比较新的功能，这样的话，就得关闭存储集群上的这些功能。</p>
</li>
</ul>
</div>
</div>
<div class="section" id="id2">
<h2>系统平台<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<p>下面的表格展示了 Ceph 对各种 Linux 发行版的依赖对应关系。一般来说， Ceph 对具体发行版的依赖很少，只是与内核、系统初始化软件包（即 sysvinit 、 systemd ）有关。</p>
<div class="section" id="octopus-15-2-z">
<h3>Octopus (15.2.z)<a class="headerlink" href="#octopus-15-2-z" title="Permalink to this headline">¶</a></h3>
<table class="docutils align-default">
<colgroup>
<col style="width: 13%" />
<col style="width: 13%" />
<col style="width: 27%" />
<col style="width: 19%" />
<col style="width: 12%" />
<col style="width: 16%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>发行版</p></th>
<th class="head"><p>版本</p></th>
<th class="head"><p>代号</p></th>
<th class="head"><p>内核版本</p></th>
<th class="head"><p>附注</p></th>
<th class="head"><p>测试情况</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>CentOS</p></td>
<td><p>8</p></td>
<td><p>N/A</p></td>
<td><p>linux-4.18</p></td>
<td></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-odd"><td><p>CentOS</p></td>
<td><p>7</p></td>
<td><p>N/A</p></td>
<td><p>linux-3.10.0</p></td>
<td><p>4, 5</p></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-even"><td><p>Debian</p></td>
<td><p>10</p></td>
<td><p>Buster</p></td>
<td><p>linux-4.19</p></td>
<td></td>
<td><p>B</p></td>
</tr>
<tr class="row-odd"><td><p>RHEL</p></td>
<td><p>8</p></td>
<td><p>Ootpa</p></td>
<td><p>linux-4.18</p></td>
<td></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-even"><td><p>RHEL</p></td>
<td><p>7</p></td>
<td><p>Maipo</p></td>
<td><p>linux-3.10.0</p></td>
<td></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-odd"><td><p>Ubuntu</p></td>
<td><p>18.04</p></td>
<td><p>Bionic Beaver</p></td>
<td><p>linux-4.15</p></td>
<td><p>4</p></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-even"><td><p>openSUSE</p></td>
<td><p>15.2</p></td>
<td><p>Leap</p></td>
<td><p>linux-5.3</p></td>
<td><p>6</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>openSUSE</p></td>
<td></td>
<td><p>Tumbleweed</p></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="nautilus-14-2-z">
<h3>Nautilus (14.2.z)<a class="headerlink" href="#nautilus-14-2-z" title="Permalink to this headline">¶</a></h3>
<table class="docutils align-default">
<colgroup>
<col style="width: 13%" />
<col style="width: 13%" />
<col style="width: 27%" />
<col style="width: 19%" />
<col style="width: 12%" />
<col style="width: 16%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>发行版</p></th>
<th class="head"><p>版本</p></th>
<th class="head"><p>代号</p></th>
<th class="head"><p>内核版本</p></th>
<th class="head"><p>附注</p></th>
<th class="head"><p>测试情况</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>CentOS</p></td>
<td><p>7</p></td>
<td><p>N/A</p></td>
<td><p>linux-3.10.0</p></td>
<td><p>3</p></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-odd"><td><p>Debian</p></td>
<td><p>8.0</p></td>
<td><p>Jessie</p></td>
<td><p>linux-3.16.0</p></td>
<td><p>1, 2</p></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-even"><td><p>Debian</p></td>
<td><p>9.0</p></td>
<td><p>Stretch</p></td>
<td><p>linux-4.9</p></td>
<td><p>1, 2</p></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-odd"><td><p>RHEL</p></td>
<td><p>7</p></td>
<td><p>Maipo</p></td>
<td><p>linux-3.10.0</p></td>
<td></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-even"><td><p>Ubuntu</p></td>
<td><p>14.04</p></td>
<td><p>Trusty Tahr</p></td>
<td><p>linux-3.13.0</p></td>
<td></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-odd"><td><p>Ubuntu</p></td>
<td><p>16.04</p></td>
<td><p>Xenial Xerus</p></td>
<td><p>linux-4.4.0</p></td>
<td><p>3</p></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-even"><td><p>Ubuntu</p></td>
<td><p>18.04</p></td>
<td><p>Bionic Beaver</p></td>
<td><p>linux-4.15</p></td>
<td><p>3</p></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-odd"><td><p>openSUSE</p></td>
<td><p>15.1</p></td>
<td><p>Leap</p></td>
<td><p>linux-4.12</p></td>
<td><p>6</p></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="luminous-12-2-z">
<h3>Luminous (12.2.z)<a class="headerlink" href="#luminous-12-2-z" title="Permalink to this headline">¶</a></h3>
<table class="docutils align-default">
<colgroup>
<col style="width: 13%" />
<col style="width: 13%" />
<col style="width: 27%" />
<col style="width: 19%" />
<col style="width: 12%" />
<col style="width: 16%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>发行版</p></th>
<th class="head"><p>版本</p></th>
<th class="head"><p>代号</p></th>
<th class="head"><p>内核版本</p></th>
<th class="head"><p>附注</p></th>
<th class="head"><p>测试情况</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>CentOS</p></td>
<td><p>7</p></td>
<td><p>N/A</p></td>
<td><p>linux-3.10.0</p></td>
<td><p>3</p></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-odd"><td><p>Debian</p></td>
<td><p>8.0</p></td>
<td><p>Jessie</p></td>
<td><p>linux-3.16.0</p></td>
<td><p>1, 2</p></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-even"><td><p>Debian</p></td>
<td><p>9.0</p></td>
<td><p>Stretch</p></td>
<td><p>linux-4.9</p></td>
<td><p>1, 2</p></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-odd"><td><p>Fedora</p></td>
<td><p>22</p></td>
<td><p>N/A</p></td>
<td><p>linux-3.14.0</p></td>
<td></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-even"><td><p>RHEL</p></td>
<td><p>7</p></td>
<td><p>Maipo</p></td>
<td><p>linux-3.10.0</p></td>
<td></td>
<td><p>B, I</p></td>
</tr>
<tr class="row-odd"><td><p>Ubuntu</p></td>
<td><p>14.04</p></td>
<td><p>Trusty Tahr</p></td>
<td><p>linux-3.13.0</p></td>
<td></td>
<td><p>B, I, C</p></td>
</tr>
<tr class="row-even"><td><p>Ubuntu</p></td>
<td><p>16.04</p></td>
<td><p>Xenial Xerus</p></td>
<td><p>linux-4.4.0</p></td>
<td><p>3</p></td>
<td><p>B, I, C</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id3">
<h3>附注<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p><strong>1</strong>: 默认内核的 <code class="docutils literal notranslate"><span class="pre">btrfs</span></code> 版本较老，不推荐用于 <code class="docutils literal notranslate"><span class="pre">ceph-osd</span></code>
存储节点；从 Mimic 版起我们建议用 <code class="docutils literal notranslate"><span class="pre">bluestore</span></code> ，之前的建议用 <code class="docutils literal notranslate"><span class="pre">XFS</span></code> 搭配 <code class="docutils literal notranslate"><span class="pre">filestore</span></code> 。</p></li>
<li><p><strong>2</strong>: 默认内核带的 Ceph 客户端较老，不推荐做内核空间客户端（内核 RBD 或 Ceph 文件系统），请升级到推荐的内核。</p></li>
<li><p><strong>3</strong>: 使用 <code class="docutils literal notranslate"><span class="pre">btrfs</span></code> 文件系统时，默认内核经常过不了质量检验。从 Mimic 版起我们建议用 <code class="docutils literal notranslate"><span class="pre">bluestore</span></code> ，之前的建议用 <code class="docutils literal notranslate"><span class="pre">XFS</span></code> 搭配 <code class="docutils literal notranslate"><span class="pre">filestore</span></code> 。</p></li>
<li><p><strong>4</strong>: 这个版本不再测试 <code class="docutils literal notranslate"><span class="pre">btrfs</span></code> 了，
我们建议用 <code class="docutils literal notranslate"><span class="pre">bluestore</span></code> 。</p></li>
<li><p><strong>5</strong>: 和仪表盘相关的一些附加功能不可用。</p></li>
<li><p><strong>6</strong>: 该构建的软件包会照常构建，但不会发布出去。</p></li>
</ul>
</div>
<div class="section" id="id4">
<h3>测试情况<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p><strong>B</strong>: 我们会为此平台构建发布包。对其中的某些平台，可能也会持续地编译所有分支、做基本单元测试。</p></li>
<li><p><strong>I</strong>: 我们在这个平台上做基本的安装和功能测试。</p></li>
<li><p><strong>C</strong>: 我们在这个平台上持续地做全面的功能、退化、压力测试，包括开发分支、预发布版本、正式发布版本。</p></li>
</ul>
</div>
</div>
</div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="../get-involved/" class="btn btn-neutral float-right" title="加入 Ceph 社区！" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../hardware-recommendations/" class="btn btn-neutral float-left" title="硬件推荐" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>